import React from 'react'
import ReactDOM from 'react-dom'
import logo from './img/9973logo.png'
import './css/index.css'
class App extends React.Component {
    state = {
        reset: 'yes'
    }
    onClick = () => {
        this.setState({
            reset: this.state.reset === 'yes' ? 'no' : 'yes'
        })
    }
    render() {
        return (
            <div>
              <img src={ logo }
                alt='logo'
                className={ this.state.reset === 'yes' ? 'logo' : 'logo logo-rotate' }
                onClick={ this.onClick } />
            </div>
        )
    }
}
ReactDOM.render(<App></App>, document.body);